﻿@model List<Century.CommonModule.Models.SliderViewModel>
@using (Html.BeginScripts())
{

    @Styles.Render("~/Content/slider")
    @Scripts.Render("~/bundles/slider")
    <script>
         $(function () {
             $('.pix_diapo').diapo();
         });
    </script>
}

<div class="pix_diapo">
    @foreach (var item in Model)
    {
        <div data-thumb="@item.ImageUrl">
            <img src="@item.ImageUrl">
            @if (!string.IsNullOrEmpty(item.SlidText))
            {
                <div class="caption elemHover fromLeft">
                    @item.SlidText
                </div>
            }

        </div>
    }
</div>

